package com.dotflat.xj.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 巡检对象对象
 * 
 * @author #
 * @date 2021-11-25
 */
@Entity
@Table(name = "xj_target")
@lombok.Data
@EqualsAndHashCode(callSuper = true)
public class Target extends AreableObjectBase
{


    /** 二维码url */
    @Column(columnDefinition = "varchar(255)   COMMENT '二维码url' ")
    private String url;

    /** 类别名称 */
    @Column(columnDefinition = "varchar(255)   COMMENT '类别名称' ")
    private String typeName;

    /** 检查目标类别，对象类别 */
    @Column(columnDefinition = "varchar(255)   COMMENT '检查目标类别，对象类别' ")
    private String targetType;

    /** 结论类别 */
    @Column(columnDefinition = "varchar(255)   COMMENT '结论类别' ")
    private String conclusionType;

    /** 检查分类 */
    @Column(columnDefinition = "varchar(255)   COMMENT '检查分类' ")
    private String sort;

    /** 记录类型,记录方式 */
    @Column(columnDefinition = "varchar(255)   COMMENT '记录方式' ")
    private String recordType;

    /** 检查周期 */
    @Column(columnDefinition = "varchar(255)   COMMENT '检查周期' ")
    private String cycle;

    /** 状态 */
    @Column(columnDefinition = "char(4)  DEFAULT '0'  COMMENT '状态 0正常，1停用' ")
    private String status;

    /** 是否部分提交 */
    @Column(columnDefinition = "char(4)  DEFAULT '0'    COMMENT '是否部分提交0全部，1部分' ")
    private String whole;

    /** 备注 */
    @Column(columnDefinition = "varchar(255)   COMMENT '备注' ")
    private String remark;

    /** 总分数 */
    @Column(columnDefinition = "int(6)  DEFAULT 0    COMMENT '总分数' ")
    private Integer projectCount;

    /** 总检查项 */
    @Column(columnDefinition = "int(6)  DEFAULT 0   COMMENT '总检查项' ")
    private Integer projectNumber;

    /** 所属 */
    @Column(columnDefinition = "varchar(255)   COMMENT '所属' ")
    private String belonging;

    @Column(columnDefinition = "varchar(32)   DEFAULT '0'   COMMENT '集团ID' ")
    private String groupId;
}
